package com.myself.core.repository

import com.myself.common.repository.BaseRepository

import org.springframework.stereotype.Repository
import com.myself.core.entity.Record
import com.myself.core.table.Records
import com.myself.core.table.Records.records
import org.ktorm.database.Database
import org.ktorm.dsl.desc
import org.ktorm.dsl.isNotNull
import org.ktorm.entity.*

@Repository
open class RecordRepository(
    private val dataBase: Database,
) : BaseRepository<Record, Records>(dataBase.records)